home *** CD-ROM | disk | FTP | other *** search
- // windlg.h RHS 1/15/92
-
- #if !defined(WINDLG_H)
- #define WINDLG_H
-
- #include"winapp.h"
-
-
- long far pascal WinDlgWndProc(HWND hWnd, WORD msg, WORD wParam, LONG lParam);
-
-
- class WinDlg : public Window
- {
- public:
- WinDlg(char *name) : Window(name)
- {
- SetClassWinProc(WinDlgWndProc);
- AddClassWinXbytes(DLGWINDOWEXTRA);
- }
- BOOL Create(void)
- {
- Register();
- SetWinInstance(GetInstance());
- SetWinClassName(GetClassName());
- SetWinParams((LPSTR)this);
- extern Window *winDlg;
- winDlg = this;
- if(hWnd = CreateDialog(GetInstance(), GetClassName(), 0, NULL))
- return TRUE;
- return FALSE;
- }
- virtual BOOL UserMessageProcessing(MSG *msg)
- {
- if(!hWnd || !IsDialogMessage(hWnd,msg))
- return FALSE;
- return TRUE;
- }
- };
-
-
- #endif
-
-